package icu.ikuns;

import icu.ikuns.abst.Mission;
import icu.ikuns.abst.Officer;
import icu.ikuns.officer.BangZhang;
import icu.ikuns.officer.PaiZhang;
import icu.ikuns.officer.YingZhang;

/**
 * @Author： Kimariyb
 * @Date：2022/05/26/14:15
 * @Description：
 */
public class Test {
    public static void main(String[] args) {
        Officer bangZhang = new BangZhang("张班长");
        Officer paiZhang = new PaiZhang("李排长");
        Officer yingZhang = new YingZhang("刘营长");

        bangZhang.setSuccessor(paiZhang);
        paiZhang.setSuccessor(yingZhang);

        Mission mission1 = new Mission("周小妹", 8);
        bangZhang.handleMission(mission1);

        Mission mission2 = new Mission("胡小妹", 36);
        bangZhang.handleMission(mission2);

        Mission mission3 = new Mission("王小姐", 150);
        bangZhang.handleMission(mission3);

        Mission mission4 = new Mission("篮子", 300);
        bangZhang.handleMission(mission4);
    }
}
